package com.example.shuiyin.enums;

/**
 * 支付状态枚举
 */
public enum PaymentStatus {
    /**
     * 等待支付
     */
    WAITING,
    
    /**
     * 支付中
     */
    PROCESSING,
    
    /**
     * 支付成功
     */
    SUCCESS,
    
    /**
     * 支付失败
     */
    FAILED,
    
    /**
     * 已取消
     */
    CANCELLED,
    
    /**
     * 已退款
     */
    REFUNDED;
    
    /**
     * 获取状态描述
     */
    public String getDescription() {
        switch(this) {
            case WAITING: return "等待支付";
            case PROCESSING: return "支付中";
            case SUCCESS: return "支付成功";
            case FAILED: return "支付失败";
            case CANCELLED: return "已取消";
            case REFUNDED: return "已退款";
            default: return this.name();
        }
    }
} 